import { makeAutoObservable } from "mobx";
import { http } from "../utils";
class UserStore {
  userInfo = {};
  constructor() {
    makeAutoObservable(this);
  }
  getUserInfo = () => {
    http.get("/user/profile").then((res) => {
      // console.log(res);
      this.userInfo = res.data.data;
    });
  };
}

export default UserStore;
